package com.zwr.sheller.core.util;

import com.alibaba.fastjson.JSON;

import java.util.Map;

/**
 * @Author: 18032
 * @Date: 16:01 2022/1/7
 */
public class GetThreadLocal {

    public static Long getStoreId() {
        Map map = JsonUtil.stringToObject(JsonUtil.objectToString(ThreadLocalUtil.getObject()), Map.class);
        System.out.println(map+"___以上是一map");
        Object storeId1 = map.get("storeId");
        Long storeId = Long.valueOf(String.valueOf(storeId1));
        return storeId;
    }

    public static String getPhone() {
        Map map = JsonUtil.stringToObject(String.valueOf(ThreadLocalUtil.getObject()), Map.class);
        Object storeId1 = map.get("phone");
        String phone = String.valueOf(storeId1);
        return phone;
    }
}
